home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-07-15 | 703 b | 16 lines | [TEXT/ttxt] |
- TranslateRotate
-
- Many people are uncomfortable with Apple's fixed-point data types,
- because they can't be used with normal operator arithmetic and
- because their representation is not easily readable (though it
- is easily converted to integer types). Here's something to show
- how simple it really is.
-
- TranslateRotate does two-dimensional translation and rotations
- in word-size coordinates, using fixed-point math. Each routine
- is passed info for a transform matrix which tells the routine what
- to do with the fPoint argument. Each routine then does its thing
- on its fPoint argument, returning the new fPoint position.
- ======================================================================
-
-